# 多值参数
def sum_numbers(*param):
    num = 0
    for data in param:
        num += data

    print("param:", param)
    return num


def sum_numbers2(param):
    num = 0
    for data in param:
        num += data

    print("param:", param)
    return num


total_num = sum_numbers(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
print("total_num:", total_num)

total_num = sum_numbers2((1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
print("total_num:", total_num)
